<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.16"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>LibTools: H:/project/LibTools/src/stream/StringTools.cpp 文件参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">LibTools
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.16 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',false,false,'search.php','搜索');
});
/* @license-end */</script>
<div id="main-nav"></div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_090521d29e73b40f7fc0a63254d8965e.html">stream</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#define-members">宏定义</a> &#124;
<a href="#func-members">函数</a>  </div>
  <div class="headertitle">
<div class="title">StringTools.cpp 文件参考</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &quot;<a class="el" href="_string_tools_8h_source.html">StringTools.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="_share_api_8h_source.html">../tools/ShareApi.h</a>&quot;</code><br />
</div>
<p><a href="_string_tools_8cpp_source.html">浏览源代码.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
宏定义</h2></td></tr>
<tr class="memitem:aef1588fe2e3147b586fb16d9ca379571"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_string_tools_8cpp.html#aef1588fe2e3147b586fb16d9ca379571">CODE_TRANSFORM</a>(strtype,  codestr,  str,  func)</td></tr>
<tr class="separator:aef1588fe2e3147b586fb16d9ca379571"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
函数</h2></td></tr>
<tr class="memitem:a07b4fcda57d14c768983d25b0ad567f1"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_string_tools_8cpp.html#a07b4fcda57d14c768983d25b0ad567f1">unicode_to_gbk</a> (const std::wstring &amp;str)</td></tr>
<tr class="memdesc:a07b4fcda57d14c768983d25b0ad567f1"><td class="mdescLeft">&#160;</td><td class="mdescRight">unicode转换成gbk编码  <a href="_string_tools_8cpp.html#a07b4fcda57d14c768983d25b0ad567f1">更多...</a><br /></td></tr>
<tr class="separator:a07b4fcda57d14c768983d25b0ad567f1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aca31d9b98567c8b7470c3cf41164ce4c"><td class="memItemLeft" align="right" valign="top">std::wstring&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_string_tools_8cpp.html#aca31d9b98567c8b7470c3cf41164ce4c">gbk_to_unicode</a> (const std::string &amp;str)</td></tr>
<tr class="memdesc:aca31d9b98567c8b7470c3cf41164ce4c"><td class="mdescLeft">&#160;</td><td class="mdescRight">gbk转换成unicode编码  <a href="_string_tools_8cpp.html#aca31d9b98567c8b7470c3cf41164ce4c">更多...</a><br /></td></tr>
<tr class="separator:aca31d9b98567c8b7470c3cf41164ce4c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0be96196e216af786327425a2ba9dce5"><td class="memItemLeft" align="right" valign="top">std::wstring&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_string_tools_8cpp.html#a0be96196e216af786327425a2ba9dce5">utf8_to_unicode</a> (const std::string &amp;str)</td></tr>
<tr class="memdesc:a0be96196e216af786327425a2ba9dce5"><td class="mdescLeft">&#160;</td><td class="mdescRight">utf8转换成unicode编码  <a href="_string_tools_8cpp.html#a0be96196e216af786327425a2ba9dce5">更多...</a><br /></td></tr>
<tr class="separator:a0be96196e216af786327425a2ba9dce5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adf9bf8a881c62213add1c31d44143d79"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_string_tools_8cpp.html#adf9bf8a881c62213add1c31d44143d79">unicode_to_utf8</a> (const std::wstring &amp;str)</td></tr>
<tr class="memdesc:adf9bf8a881c62213add1c31d44143d79"><td class="mdescLeft">&#160;</td><td class="mdescRight">unicode转换成utf8编码  <a href="_string_tools_8cpp.html#adf9bf8a881c62213add1c31d44143d79">更多...</a><br /></td></tr>
<tr class="separator:adf9bf8a881c62213add1c31d44143d79"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a593b0f25bbfb5c0b02573960ebd14f11"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_string_tools_8cpp.html#a593b0f25bbfb5c0b02573960ebd14f11">utf8_to_gbk</a> (const std::string &amp;str)</td></tr>
<tr class="memdesc:a593b0f25bbfb5c0b02573960ebd14f11"><td class="mdescLeft">&#160;</td><td class="mdescRight">utf8 转换成gbk编码  <a href="_string_tools_8cpp.html#a593b0f25bbfb5c0b02573960ebd14f11">更多...</a><br /></td></tr>
<tr class="separator:a593b0f25bbfb5c0b02573960ebd14f11"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa1ecac9106ecd01583fdb69d67b6f403"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_string_tools_8cpp.html#aa1ecac9106ecd01583fdb69d67b6f403">gbk_to_utf8</a> (const std::string &amp;str)</td></tr>
<tr class="memdesc:aa1ecac9106ecd01583fdb69d67b6f403"><td class="mdescLeft">&#160;</td><td class="mdescRight">gbk转换成utf8编码  <a href="_string_tools_8cpp.html#aa1ecac9106ecd01583fdb69d67b6f403">更多...</a><br /></td></tr>
<tr class="separator:aa1ecac9106ecd01583fdb69d67b6f403"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adac72ee9b4cb407716831d18e41b6739"><td class="memTemplParams" colspan="2">template&lt;class T &gt; </td></tr>
<tr class="memitem:adac72ee9b4cb407716831d18e41b6739"><td class="memTemplItemLeft" align="right" valign="top">static std::basic_string&lt; T &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="_string_tools_8cpp.html#adac72ee9b4cb407716831d18e41b6739">inline_format</a> (const T *mat, va_list &amp;params)</td></tr>
<tr class="separator:adac72ee9b4cb407716831d18e41b6739"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acf08519d5388f95501bbcadf6f2d09d7"><td class="memTemplParams" colspan="2">template&lt;class T &gt; </td></tr>
<tr class="memitem:acf08519d5388f95501bbcadf6f2d09d7"><td class="memTemplItemLeft" align="right" valign="top">static std::basic_string&lt; T &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="_string_tools_8cpp.html#acf08519d5388f95501bbcadf6f2d09d7">inline_format_s</a> (size_t bufSize, const T *mat, va_list &amp;params)</td></tr>
<tr class="separator:acf08519d5388f95501bbcadf6f2d09d7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a68e59768ff7f1f1fe4dca5ccaa26de28"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_string_tools_8cpp.html#a68e59768ff7f1f1fe4dca5ccaa26de28">format</a> (const char *mat,...)</td></tr>
<tr class="separator:a68e59768ff7f1f1fe4dca5ccaa26de28"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a05392ebea4c84f0e446a39ce37741630"><td class="memItemLeft" align="right" valign="top">std::wstring <a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_string_tools_8cpp.html#a05392ebea4c84f0e446a39ce37741630">format</a> (const <a class="el" href="tools_8h.html#aad61bc3eae1804d8784adebdce0721d3">WCHAR</a> *mat,...)</td></tr>
<tr class="separator:a05392ebea4c84f0e446a39ce37741630"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:accff640a08f04f7443e0da4eb25a4cf0"><td class="memItemLeft" align="right" valign="top">std::string <a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_string_tools_8cpp.html#accff640a08f04f7443e0da4eb25a4cf0">format_s</a> (size_t bufSize, const char *mat,...)</td></tr>
<tr class="separator:accff640a08f04f7443e0da4eb25a4cf0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aed4d212ddfba3a5d2ce4406210f8f2e8"><td class="memItemLeft" align="right" valign="top">std::wstring <a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_string_tools_8cpp.html#aed4d212ddfba3a5d2ce4406210f8f2e8">format_s</a> (size_t bufSize, const <a class="el" href="tools_8h.html#aad61bc3eae1804d8784adebdce0721d3">WCHAR</a> *mat,...)</td></tr>
<tr class="separator:aed4d212ddfba3a5d2ce4406210f8f2e8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7f57544b2a47499dd00e2c93fae19dc3"><td class="memTemplParams" colspan="2">template&lt;class Char , class StringType &gt; </td></tr>
<tr class="memitem:a7f57544b2a47499dd00e2c93fae19dc3"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="_string_tools_8cpp.html#a7f57544b2a47499dd00e2c93fae19dc3">inline_split</a> (const Char *str, <a class="el" href="_find_file_8h.html#a37cc1038758216808d5f75090b093c9a">int</a> spchr, std::vector&lt; StringType &gt; &amp;strs)</td></tr>
<tr class="separator:a7f57544b2a47499dd00e2c93fae19dc3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9ee1de8dc109d12ae2bcfc653dd66401"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_string_tools_8cpp.html#a9ee1de8dc109d12ae2bcfc653dd66401">split</a> (const std::string &amp;str, <a class="el" href="_find_file_8h.html#a37cc1038758216808d5f75090b093c9a">int</a> spchr, std::vector&lt; std::string &gt; &amp;strs)</td></tr>
<tr class="separator:a9ee1de8dc109d12ae2bcfc653dd66401"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a97b063cbc4078378f7c97934015086a6"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_string_tools_8cpp.html#a97b063cbc4078378f7c97934015086a6">split</a> (const std::wstring &amp;str, <a class="el" href="_find_file_8h.html#a37cc1038758216808d5f75090b093c9a">int</a> spchr, std::vector&lt; std::wstring &gt; &amp;strs)</td></tr>
<tr class="separator:a97b063cbc4078378f7c97934015086a6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5b4920350742c7ee2fa41a57bc9802ca"><td class="memTemplParams" colspan="2">template&lt;class T &gt; </td></tr>
<tr class="memitem:a5b4920350742c7ee2fa41a57bc9802ca"><td class="memTemplItemLeft" align="right" valign="top">long long&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="_string_tools_8cpp.html#a5b4920350742c7ee2fa41a57bc9802ca">inline_toll</a> (const T &amp;str)</td></tr>
<tr class="separator:a5b4920350742c7ee2fa41a57bc9802ca"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a291e8a294f62c123e11a298688172546"><td class="memItemLeft" align="right" valign="top">long long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_string_tools_8cpp.html#a291e8a294f62c123e11a298688172546">stoll</a> (const std::string &amp;str)</td></tr>
<tr class="separator:a291e8a294f62c123e11a298688172546"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac9c8dfcd949abca73bd11d1a2f2fd2a3"><td class="memItemLeft" align="right" valign="top">unsigned long long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_string_tools_8cpp.html#ac9c8dfcd949abca73bd11d1a2f2fd2a3">stollu</a> (const std::string &amp;str)</td></tr>
<tr class="separator:ac9c8dfcd949abca73bd11d1a2f2fd2a3"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">宏定义说明</h2>
<a id="aef1588fe2e3147b586fb16d9ca379571"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aef1588fe2e3147b586fb16d9ca379571">&#9670;&nbsp;</a></span>CODE_TRANSFORM</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define CODE_TRANSFORM</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">strtype, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">codestr, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">str, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">func&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<b>值:</b><div class="fragment"><div class="line">{ \</div>
<div class="line">    size_t rcvSize = func((strtype*)codestr.data(), codestr.size(), str.data(), str.size()); \</div>
<div class="line">    if (rcvSize == (<span class="keywordtype">size_t</span>)-1) { \</div>
<div class="line">        codestr.clear(); \</div>
<div class="line">    }\</div>
<div class="line">    else { \</div>
<div class="line">        codestr.erase(codestr.begin() + rcvSize, codestr.end()); \</div>
<div class="line">    }\</div>
<div class="line">}</div>
</div><!-- fragment -->
<p class="definition">在文件 <a class="el" href="_string_tools_8cpp_source.html">StringTools.cpp</a> 第 <a class="el" href="_string_tools_8cpp_source.html#l00006">6</a> 行定义.</p>

</div>
</div>
<h2 class="groupheader">函数说明</h2>
<a id="a68e59768ff7f1f1fe4dca5ccaa26de28"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a68e59768ff7f1f1fe4dca5ccaa26de28">&#9670;&nbsp;</a></span>format() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::string format </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>mat</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>...</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_string_tools_8cpp_source.html">StringTools.cpp</a> 第 <a class="el" href="_string_tools_8cpp_source.html#l00127">127</a> 行定义.</p>

</div>
</div>
<a id="a05392ebea4c84f0e446a39ce37741630"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a05392ebea4c84f0e446a39ce37741630">&#9670;&nbsp;</a></span>format() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::wstring <a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> format </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="tools_8h.html#aad61bc3eae1804d8784adebdce0721d3">WCHAR</a> *&#160;</td>
          <td class="paramname"><em>mat</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>...</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_string_tools_8cpp_source.html">StringTools.cpp</a> 第 <a class="el" href="_string_tools_8cpp_source.html#l00137">137</a> 行定义.</p>

</div>
</div>
<a id="accff640a08f04f7443e0da4eb25a4cf0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#accff640a08f04f7443e0da4eb25a4cf0">&#9670;&nbsp;</a></span>format_s() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::string <a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> format_s </td>
          <td>(</td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>bufSize</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>mat</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>...</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_string_tools_8cpp_source.html">StringTools.cpp</a> 第 <a class="el" href="_string_tools_8cpp_source.html#l00147">147</a> 行定义.</p>

</div>
</div>
<a id="aed4d212ddfba3a5d2ce4406210f8f2e8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aed4d212ddfba3a5d2ce4406210f8f2e8">&#9670;&nbsp;</a></span>format_s() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::wstring <a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> format_s </td>
          <td>(</td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>bufSize</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="tools_8h.html#aad61bc3eae1804d8784adebdce0721d3">WCHAR</a> *&#160;</td>
          <td class="paramname"><em>mat</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>...</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_string_tools_8cpp_source.html">StringTools.cpp</a> 第 <a class="el" href="_string_tools_8cpp_source.html#l00157">157</a> 行定义.</p>

</div>
</div>
<a id="aca31d9b98567c8b7470c3cf41164ce4c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aca31d9b98567c8b7470c3cf41164ce4c">&#9670;&nbsp;</a></span>gbk_to_unicode()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::wstring gbk_to_unicode </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>str</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>gbk转换成unicode编码 </p>

<p class="definition">在文件 <a class="el" href="_string_tools_8cpp_source.html">StringTools.cpp</a> 第 <a class="el" href="_string_tools_8cpp_source.html#l00027">27</a> 行定义.</p>

</div>
</div>
<a id="aa1ecac9106ecd01583fdb69d67b6f403"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa1ecac9106ecd01583fdb69d67b6f403">&#9670;&nbsp;</a></span>gbk_to_utf8()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::string gbk_to_utf8 </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>str</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>gbk转换成utf8编码 </p>

<p class="definition">在文件 <a class="el" href="_string_tools_8cpp_source.html">StringTools.cpp</a> 第 <a class="el" href="_string_tools_8cpp_source.html#l00068">68</a> 行定义.</p>

</div>
</div>
<a id="adac72ee9b4cb407716831d18e41b6739"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adac72ee9b4cb407716831d18e41b6739">&#9670;&nbsp;</a></span>inline_format()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static std::basic_string&lt;T&gt; inline_format </td>
          <td>(</td>
          <td class="paramtype">const T *&#160;</td>
          <td class="paramname"><em>mat</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">va_list &amp;&#160;</td>
          <td class="paramname"><em>params</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_string_tools_8cpp_source.html">StringTools.cpp</a> 第 <a class="el" href="_string_tools_8cpp_source.html#l00078">78</a> 行定义.</p>

</div>
</div>
<a id="acf08519d5388f95501bbcadf6f2d09d7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acf08519d5388f95501bbcadf6f2d09d7">&#9670;&nbsp;</a></span>inline_format_s()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static std::basic_string&lt;T&gt; inline_format_s </td>
          <td>(</td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>bufSize</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const T *&#160;</td>
          <td class="paramname"><em>mat</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">va_list &amp;&#160;</td>
          <td class="paramname"><em>params</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_string_tools_8cpp_source.html">StringTools.cpp</a> 第 <a class="el" href="_string_tools_8cpp_source.html#l00105">105</a> 行定义.</p>

</div>
</div>
<a id="a7f57544b2a47499dd00e2c93fae19dc3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7f57544b2a47499dd00e2c93fae19dc3">&#9670;&nbsp;</a></span>inline_split()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Char , class StringType &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void inline_split </td>
          <td>(</td>
          <td class="paramtype">const Char *&#160;</td>
          <td class="paramname"><em>str</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="_find_file_8h.html#a37cc1038758216808d5f75090b093c9a">int</a>&#160;</td>
          <td class="paramname"><em>spchr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; StringType &gt; &amp;&#160;</td>
          <td class="paramname"><em>strs</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_string_tools_8cpp_source.html">StringTools.cpp</a> 第 <a class="el" href="_string_tools_8cpp_source.html#l00168">168</a> 行定义.</p>

</div>
</div>
<a id="a5b4920350742c7ee2fa41a57bc9802ca"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5b4920350742c7ee2fa41a57bc9802ca">&#9670;&nbsp;</a></span>inline_toll()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">long long inline_toll </td>
          <td>(</td>
          <td class="paramtype">const T &amp;&#160;</td>
          <td class="paramname"><em>str</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_string_tools_8cpp_source.html">StringTools.cpp</a> 第 <a class="el" href="_string_tools_8cpp_source.html#l00213">213</a> 行定义.</p>

</div>
</div>
<a id="a9ee1de8dc109d12ae2bcfc653dd66401"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9ee1de8dc109d12ae2bcfc653dd66401">&#9670;&nbsp;</a></span>split() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">size_t split </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>str</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="_find_file_8h.html#a37cc1038758216808d5f75090b093c9a">int</a>&#160;</td>
          <td class="paramname"><em>spchr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; std::string &gt; &amp;&#160;</td>
          <td class="paramname"><em>strs</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_string_tools_8cpp_source.html">StringTools.cpp</a> 第 <a class="el" href="_string_tools_8cpp_source.html#l00200">200</a> 行定义.</p>

</div>
</div>
<a id="a97b063cbc4078378f7c97934015086a6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a97b063cbc4078378f7c97934015086a6">&#9670;&nbsp;</a></span>split() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">size_t split </td>
          <td>(</td>
          <td class="paramtype">const std::wstring &amp;&#160;</td>
          <td class="paramname"><em>str</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="_find_file_8h.html#a37cc1038758216808d5f75090b093c9a">int</a>&#160;</td>
          <td class="paramname"><em>spchr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; std::wstring &gt; &amp;&#160;</td>
          <td class="paramname"><em>strs</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_string_tools_8cpp_source.html">StringTools.cpp</a> 第 <a class="el" href="_string_tools_8cpp_source.html#l00206">206</a> 行定义.</p>

</div>
</div>
<a id="a291e8a294f62c123e11a298688172546"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a291e8a294f62c123e11a298688172546">&#9670;&nbsp;</a></span>stoll()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">long long stoll </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>str</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_string_tools_8cpp_source.html">StringTools.cpp</a> 第 <a class="el" href="_string_tools_8cpp_source.html#l00236">236</a> 行定义.</p>

</div>
</div>
<a id="ac9c8dfcd949abca73bd11d1a2f2fd2a3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac9c8dfcd949abca73bd11d1a2f2fd2a3">&#9670;&nbsp;</a></span>stollu()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned long long stollu </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>str</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_string_tools_8cpp_source.html">StringTools.cpp</a> 第 <a class="el" href="_string_tools_8cpp_source.html#l00241">241</a> 行定义.</p>

</div>
</div>
<a id="a07b4fcda57d14c768983d25b0ad567f1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a07b4fcda57d14c768983d25b0ad567f1">&#9670;&nbsp;</a></span>unicode_to_gbk()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::string unicode_to_gbk </td>
          <td>(</td>
          <td class="paramtype">const std::wstring &amp;&#160;</td>
          <td class="paramname"><em>str</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>unicode转换成gbk编码 </p>

<p class="definition">在文件 <a class="el" href="_string_tools_8cpp_source.html">StringTools.cpp</a> 第 <a class="el" href="_string_tools_8cpp_source.html#l00016">16</a> 行定义.</p>

</div>
</div>
<a id="adf9bf8a881c62213add1c31d44143d79"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adf9bf8a881c62213add1c31d44143d79">&#9670;&nbsp;</a></span>unicode_to_utf8()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::string unicode_to_utf8 </td>
          <td>(</td>
          <td class="paramtype">const std::wstring &amp;&#160;</td>
          <td class="paramname"><em>str</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>unicode转换成utf8编码 </p>

<p class="definition">在文件 <a class="el" href="_string_tools_8cpp_source.html">StringTools.cpp</a> 第 <a class="el" href="_string_tools_8cpp_source.html#l00048">48</a> 行定义.</p>

</div>
</div>
<a id="a593b0f25bbfb5c0b02573960ebd14f11"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a593b0f25bbfb5c0b02573960ebd14f11">&#9670;&nbsp;</a></span>utf8_to_gbk()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::string utf8_to_gbk </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>str</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>utf8 转换成gbk编码 </p>

<p class="definition">在文件 <a class="el" href="_string_tools_8cpp_source.html">StringTools.cpp</a> 第 <a class="el" href="_string_tools_8cpp_source.html#l00058">58</a> 行定义.</p>

</div>
</div>
<a id="a0be96196e216af786327425a2ba9dce5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0be96196e216af786327425a2ba9dce5">&#9670;&nbsp;</a></span>utf8_to_unicode()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::wstring utf8_to_unicode </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>str</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>utf8转换成unicode编码 </p>

<p class="definition">在文件 <a class="el" href="_string_tools_8cpp_source.html">StringTools.cpp</a> 第 <a class="el" href="_string_tools_8cpp_source.html#l00038">38</a> 行定义.</p>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.16
</small></address>
</body>
</html>
